//
//  FilterPanelView.h
//  WHTestDome
//
//  Created by Assistant on 9/22/25.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class FilterPanelView;

typedef void(^FilterPanelSelectionHandler)(NSArray<NSString *> *selectedOptions);

@interface FilterPanelView : UIView

// Initialize with a host view controller for embedding the FilterViewController as a child
- (instancetype)initWithHostViewController:(UIViewController *)hostViewController options:(NSArray<NSString *> * _Nullable)options title:(NSString*)title;

// Present from beneath the host's navigation bar with dimming mask
- (void)show;
// Dismiss the panel
- (void)dismiss;

// Whether the panel is currently visible
@property (nonatomic, assign, readonly, getter=isVisible) BOOL visible;

// Called when user taps 确定
@property (nonatomic, copy) FilterPanelSelectionHandler selectionHandler;

@end

NS_ASSUME_NONNULL_END


